import { defineStore } from 'pinia'

// 定义Store
export const testStore = defineStore('testStore', {
    state: () => { //定义容器
        return {
            count: 1
        }
     },
    getters: { //获取数据
      getCount(state){
        return state.count
      }
    },
    actions: { //赋值或操作容器
      setCount(count:number){
         this.count = count
      }
    },
  })